package com.deewin.study.config;


import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class AspectConfig {
//
    @Pointcut("execution(* com.deewin.study.interfaces.Persion.*.*(..))")
    public void pointcutFun(){
        System.out.println("======This pointcoutFun()");
    }

//    @Before("pointcutFun()")
//    public void doBefor(){
//        System.out.println("This is befar fuction!");
//    }

    @Around("pointcutFun()")
    public void dofun(){
        System.out.println("-------AfterThrowing");
    }

}
